package com.pinyougou.sellergoods.service;

import com.github.pagehelper.PageInfo;
import com.pinyougou.pojo.TbBrand;
import com.pinyougou.service.BaseService;

import java.util.List;
import java.util.Map;

public interface BrandService extends BaseService<TbBrand>{
    List<TbBrand> queryAll();

    PageInfo<TbBrand> findPage(int pageNum, int pageSize);

    PageInfo<TbBrand> search(int pageNum, int pageSize, TbBrand tbBrand);

    /**
     * 获取格式化的品牌列表；格式为：[{id:'1',text:'联想'},{id:'2',text:'华为'}]
     * @return 品牌列表；格式为：[{id:'1',text:'联想'},{id:'2',text:'华为'}]
     */
    List<Map<String,Object>> selectOptionList();
}
